<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="factureList.title"/></title>
    <meta name="heading" content="<fmt:message key='factureList.heading'/>"/>
    <meta name="menu" content="AdminMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/listFactures" id="searchForm">
    <input type="text" size="20" name="query" id="query" value="${param.q}"
           placeholder="Chercher par num..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<display:table name="factures" class="table" requestURI="" id="factureList" pagesize="25">
    <display:column property="id" sortable="true" href="viewFacture" media="html"
        paramId="id" paramProperty="id" titleKey="facture.id"/>
    <display:column property="numFac" sortable="true" titleKey="facture.numFac"/>
    <display:column property="dateFac" sortable="true" titleKey="facture.dateFac"/>
    <display:column property="montant" sortable="true" titleKey="facture.montant"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="factureList.facture"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="factureList.factures"/></display:setProperty>

</display:table>

<script type="text/javascript">
    highlightTableRows("factureList");
</script>